<%-- 
    Document   : aggiungiEventoDati
    Created on : 19-giu-2012, 17.36.10
    Author     : Rosario Salone
    Form per l'aggiunta di un evento da parte dell'admin.
--%>

<%@page import="ejb.Viaggio"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>HomeTeatre - Aggiungi Evento -</title>
        <style type="text/css">
        <!--
            .Stile1 {color: #FFFFFF}
            .Stile7 {
	font-size: 15;
	color:  yellow
}

        -->
        
        </style>
        
    </head>

    <body>
     <table width="804" height="96" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <th width="100" scope="col"><img src="immagini/posta052.gif" width="64" height="77" /></th>
    <th width="700" scope="col"><a href="index.jsp"><img src="immagini/httitolo.jpg" width="700" height="100" /></a></th>
    
  </tr>
</table>

        <table width="804" border="0" cellpadding="0" cellspacing="0" bgcolor="#0066CC">
  <tr>
    <th width="100" height="181" border="10" rowspan="9" valign="top" scope="col">
        
        <%
        
          if (session.getAttribute("password")==null || session.getAttribute("login")==null){ 


      %>     
                
                <a href="accediUt.jsp"><img src="immagini/Accedi.jpg" width="103" height="50" /></a>
        <a href="registraUtente.jsp"><img src="immagini/Registrati.jpg" width="103" height="50" /></a>
        
        
            
            
        <%} else{
                if (session.getAttribute("verifica")!=null){     
                %>
                <img src="immagini/AreaAmmini3.jpg" width="103" height="50" />
                <a href="aggiungiEvento.jsp"><img src="immagini/AggEv.jpg" width="103" height="50" /></a>
            <a href="nonImplementato.jsp"><img src="immagini/RimUt.jpg" width="103" height="50" /></a>
            <a href="cancellaUtente.jsp"><img src="immagini/CanUt.jpg" width="103" height="50" /></a>

        
        <%}else
        {                                          
         %> 
              <img src="immagini/AreaGest.jpg" width="103" height="50" />
              <a href="accessoPrenot.jsp"><img src="immagini/prenotazioni_1.jpg" width="103" height="50" /></a>
                <a href="modificaUtente.jsp"><img src="immagini/ModificaD.jpg" width="103" height="50" /></a>
            
           
            
            <a href="cancellaUtente.jsp"><img src="immagini/CanUt.jpg" width="103" height="50" /></a>                        
                  <%}
                
      
                %> 
                
                              &nbsp;&nbsp;
          <form id="form1" name="form1" method="post" action="Controller">
          <input type="hidden" value="logOut" name="provenienza" />
          <input type="submit" value="log out" name="logOut" />
          
          </form>
<%} %>

</th>

                <th width="299" rowspan="6" align="left" valign="top" scope="col">
                    <form id="form1" name="form1" method="post" action="Controller">
                        
                        <label>
                            
                        <%if  (request.getAttribute("errore")!=null) {
                            if (request.getAttribute("errore").equals("null")) {%>
                                <font color="yellow" size="+2"> Attenzione, completare tutti i campi! </font>
                                
                            <%}%>
                        <%}%>
                        
                        <br />
                        <span class="Stile1">&nbsp;&nbsp;Codice &nbsp;
                            
                            &nbsp;&nbsp;<input type="text" name="cod" size="7" align="left" disabled value=0000<%=request.getAttribute("cod")%> 
                        <br />
                        </span>
                        </label>
                        <br />                                   
                        <br />                       
                        <label>
                        <span class="Stile1">&nbsp;&nbsp;Nome &nbsp;&nbsp;
                            <br />
                        &nbsp;&nbsp;<input type="text" name="nome" size="22" value=<%if (request.getAttribute("nome")==null){%> "" <%} else {%>"<%=request.getAttribute("nome")%>"<%}%> />
                        <%if (((request.getAttribute("nome")==null)||(request.getAttribute("nome")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
                        <%}%>
                        <br />
                        </span>
                        <br /><br />
                        </label>
                        
                        <label>
                        <span class="Stile1">&nbsp;&nbsp;Prezzo &nbsp;&nbsp;
                            <br />
                        &nbsp;&nbsp;<input type="text" name="prezzo" size="22" value=<%if (request.getAttribute("prezzo")==null){%> "" <%} else {%>"<%=request.getAttribute("prezzo")%>"<%}%> />
                        <%if (((request.getAttribute("prezzo")==null)||(request.getAttribute("prezzo")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
                        <%}%>
                        <br />
                        </span>
                        </label>
                        
                        <label>
                        <span class="Stile1">&nbsp;&nbsp;Tipo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <br />
                        
                        &nbsp;&nbsp;<select name="tipo" >
                        <option> </option>
                        <option>Concerto</option>
                        <option>Cabaret</option>                                                
                        <option>Intrattenimento</option>                        
                        <option>Musical</option>
                        <option>Sport</option>                        
                        <option>Teatro</option>
                        </select>
                        
                        
                        <% if (((request.getAttribute("tipo")==null)||(request.getAttribute("indirizzo")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
                        <%}%>
                        <br />
                         <br />
                        </span>
                        </label>
                        
                        <label>
                        <span class="Stile1">&nbsp;&nbsp;Posti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <br />
                        &nbsp;&nbsp;<input type="text" name="posti" size="22" value=<%if (request.getAttribute("posti")==null){%> "" <%} else {%>"<%=request.getAttribute("posti")%>"<%}%> />
                        <%if (((request.getAttribute("posti")==null)||(request.getAttribute("posti")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
                        <%}%> 
                        <br /><br />
                        </span>
                        </label>
                                                        
                                
                                
                                
                                
                            
                            <th width="300" rowspan="6" align="left" valign="top" scope="col">


                        <label>
                                                    <br />
                        <br />

                        <span class="Stile1">&nbsp;&nbsp;Data &nbsp; &nbsp;&nbsp;&nbsp;
                        <br />
                        &nbsp;&nbsp;<input type="text" name="dataevento" size="22" value=<%if (request.getAttribute("dataevento")==null){%> "" <%} else {%>"<%=request.getAttribute("dataevento")%>"<%}%> />
                        <%if (((request.getAttribute("dataevento")==null)||(request.getAttribute("dataevento")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
                        <%}%> 
                        <br />
                        </span>
                        </label>
                        
                        <label>
                        <span class="Stile1">&nbsp;&nbsp;Ora &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <br />
                        &nbsp;&nbsp;<input type="text" name="ora" size="22"  value=<%if (request.getAttribute("ora")==null){%> "" <%} else {%>"<%=request.getAttribute("ora")%>"<%}%> />
                        <%if (((request.getAttribute("ora")==null)||(request.getAttribute("ora")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
        
                        <%}%>
                        <br />
                        </span>
                        </label>
                        
                       
                        <label> 
                        <span class="Stile1">&nbsp;&nbsp;Luogo &nbsp;&nbsp;&nbsp;
                            <br />
                        &nbsp;&nbsp;<input type="text" name="luogo" size="22" value=<%if (request.getAttribute("luogo")==null){%> "" <%} else {%>"<%=request.getAttribute("luogo")%>"<%}%> />
                        <%if (((request.getAttribute("luogo")==null)||(request.getAttribute("luogo")==""))&&(request.getAttribute("errore")!=null)) {%>
                            <img src="immagini/frecce050.gif" width="49" height="23" alt="frecce050"/> &nbsp;
                        <%}%>
                        <br />
                        </span>
                        </label>
                        
                        <label>
                            


                        
                        <span class="Stile1"><br />(Seleziona il tipo di pacchetto per l'evento)
                            <%if (request.getAttribute("viaggio")==null){%> 
                        <br /><span class="Stile1"><br />Viaggio&nbsp;&nbsp;</span><select name="viaggio">
                        <option> </option>
                        <option>1</option>
                        <option>2</option>
                        <option>3</option>
                        <option>4</option>
                        <option>5</option>
                        <option>6</option>
                        <option>7</option>
                        <option>8</option>
                        <option>9</option>
                        <option>10</option> 
                        
                        </select>
                                
                                <%} %>
                        </span>
                        <span class="Stile7"><br /><br />NB. Il campo vuoto equivale a nessun viaggio.</span>
                      
                        </label>
                        
                        <p>
                        <span class="Stile1">
                        <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
                        </span>
                        <br />
                        <input type="hidden" name="provenienza" value="aggiungiEventoDati" />
                        <input type="hidden" name="operaz" value="addEvento" />
                        <input type="submit" name="conferma" value="Conferma Dati" />
                        </label>
                        </p>
                                
                                
                                
                                
                                
                                
                                
                                
                            </th>

                        </form>
     <tr>
    <th width="103" height="400" rowspan="6" valign="top" scope="col"><img src="immagini/aggiungi.jpg" width="100" height="400" /></th>
     </tr>                        
                        
                        
        </table>
    </body>
</html>
